package com.tuanzi.loan.business.repository.xhh.settlementsystem.custom;

import com.tuanzi.loan.business.entity.xhh.settlementsystem.XhhSettlementCompany;
import com.tuanzi.loan.vo.request.xhh.settlementsystem.XhhSettlementCompanyRequest;
import com.tuanzi.loan.vo.response.xhh.settlementsystem.XhhSettlementCompanyResponse;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author caiwanlin
 * @create 2018-08-16 15:35
 */
public interface XhhSettlementCompanyRepositoryCustom {
    Page<XhhSettlementCompanyResponse> list(XhhSettlementCompanyRequest searchRequest, Pageable pageable);

    List<XhhSettlementCompany> getCompanyList();

    /**
     * 更新消耗金额
     * @param companyId
     * @param expendAmount
     */
    void updateExpendAmount(Long companyId, Double expendAmount);


    /**
     * 更新预付金额
     * @param companyId
     * @param expendAmount
     */
    void updatePrepayAmount(Long companyId, Double prepayAmount);
}
